﻿using System;

namespace YArchitech.Controls
{
	public class GZipFileInfo
	{
		public bool ParseFileInfo(string fileInfo)
		{
			bool result = false;
			try
			{
				if (!string.IsNullOrEmpty(fileInfo))
				{
					string[] array = fileInfo.Split(new char[]
					{
						','
					});
					if (array != null && array.Length == 4)
					{
						this.Index = Convert.ToInt32(array[0]);
						this.RelativePath = array[1].Replace("/", "\\");
						this.ModifiedDate = Convert.ToDateTime(array[2]);
						this.Length = Convert.ToInt32(array[3]);
						result = true;
					}
				}
			}
			catch
			{
				result = false;
			}
			return result;
		}

		public int Index;

		public string RelativePath;

		public DateTime ModifiedDate;

		public int Length;

		public bool AddedToTempFile;

		public bool RestoreRequested;

		public bool Restored;

		public string LocalPath;

		public string Folder;
	}
}
